package com.itheima.service;


import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    public void add(Role role, Integer[] perssionIds, Integer[] menuIds);

    public PageResult findPage(QueryPageBean queryPageBean);

    public List<Role> findAll();

    public Role findById(Integer roleId);

    List<Integer> findPermissionIdsByRoleId(Integer roleId);

    List<Integer> findMenuIdsByRoleId(Integer roleId);

    void edit(Role role, Integer[] perssionIds, Integer[] menuIds);

    void delete(Integer id);
}
